package code.coolbaby.sms.entity;

import java.sql.Timestamp;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import code.coolbaby.core.orm.IdEntity;

/**
 * 待发送的短信息.
 * 
 * @author Kanine
 */
@Entity
@Table(name = "MessagesToSend")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@AttributeOverride(name = "id", column = @Column(name = "messageId"))
public class MessagesToSend extends IdEntity {

	private String mobiles; // 接收手机号码,多个号码以,分隔

	private String content; // 短信内容,超出70个字符自动截成多条发送

	private int status = 0; // 发送状态,0:待发送1:发送成功2:发送失败

	private Timestamp sendTime;// 定时发送时间

	public String getMobiles() {
		return mobiles;
	}

	public void setMobiles(String mobiles) {
		this.mobiles = mobiles;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Timestamp getSendTime() {
		return sendTime;
	}

	public void setSendTime(Timestamp sendTime) {
		this.sendTime = sendTime;
	}
}
